import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { ServeView } from './serve/view';
import { ServerHome } from './serve/home';

const AppRoute = () => (
    <Router>
        <Switch>
            <Route exact path="/production-line" component={ServerHome}/>
            <Route exact path="/" component={ServeView}/>
        </Switch>
    </Router>
);

export {AppRoute};
